package com.hzdl.house_mgr.service;

import com.github.pagehelper.PageInfo;
import com.hzdl.house_mgr.bean.Admin;
import com.hzdl.house_mgr.bean.BaseStat;

import java.util.List;

public interface AdminService {

    Admin login(Admin admin);

    int insertAdmin(Admin admin);

    int deleteAdminById(Integer adminId);

    int updateAdmin(Admin admin);

    /**
     * 查询用户
     */
    PageInfo<Admin> findAdminByWhere(Admin admin, Integer page, Integer limit);

    Integer getCountByWhere(Admin admin);

    /*重置密码*/
    int resetAdminPwd(Integer adminId);

    int deleteSomeAdmin(String [] split);

    int updateRoleAdmin(Integer adminId , Integer[] rids);
    List<BaseStat> yearSoleJson(String year);
}
